package com.project.smarthome.login;


import com.project.smarthome.base.UIPresenter;
import com.project.smarthome.base.UIView;
import com.project.smarthome.login.model.NameAndPhone;

import java.util.List;


public interface LoginContract {

    interface View extends UIView {

        void showLoginError(String errmsg);

        void loginSuccessToMain();

        void showUserName(String username);

        void showLoginHistory(List<NameAndPhone> accountList);

    }

    interface Presenter extends UIPresenter {

        void toLogin(String username, String password);

    }
}
